<!--
 * @FilePath: 打开窗口.html
 * @Author: 苏苏少年
 * @Date: 2022-12-05 19:11:27
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button onclick="openNewWin()">按钮</button>
    <script> 
        function openNewWin(){
            // 打开百度网址
            // window.open("https://www.baidu.com/", "_blank");
            window.open("./关闭窗口.html");
            
        }
    </script>
</body>
</html>